﻿@model IEnumerable<VideoCache.Server.Model.SiteInfo>

@{
    ViewBag.Title = "站点管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}

<h2 class="pageTitle">@ViewBag.Title</h2>

<div class="easyui-panel wrap">
    <a href="@Url.Action("Create")" class="lbtn">新建</a>
</div>
<div class="wrap">
<table width="100%" class="ten-table">
<thead>
    <tr>
        <th style="width:50px;text-align:center">编号</th>
        <th>站点名称</th>
        <th>网站名称</th>
        <th>网址</th>
        <th>允许下载</th>
        <th>播放器ID</th>
        <th>随意拖标记</th>
        <th>下载器</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model) {
    <tr>
        <td style="width:50px;text-align:center">@item.Id</td>
        <td>
            @item.Name
        </td>
        <td>
            @item.DisplayName
        </td>
        <td>
            @item.UrlHost
        </td>
        <td>
            @if (item.AllowDownload > 0)
            {
                <span>是</span>
            }
            else
            {
                <span>否</span>
            }
        </td>
        <td>
            @item.PlayerId
        </td>
        <td>
            @item.PositionTag
        </td>
        <td>
            @item.Downloader
        </td>
        <td>
            @Html.ActionLink("修改", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id }, new { @class = "delete" })
        </td>
    </tr>
}
</tbody>
</table>
</div>